/**
 * Copyright (c) 2016 Lenovo Group
 * All Rights Reserved.
 * 
 * Project Name:itsm-gateway
 * Create Time: 2016年2月19日 上午16:09:33
 */
package com.lenovo.lmrp.base.map;

/**
 * @author zhangzhenga
 *
 */
public class Address {
    //全地址
    private String address;
    private Location location;
    private Integer precise;//是否精确查找。1为精确查找，即准确打点；0为不精确，即模糊打点
    private Integer confidence;//可信度，描述打点准确度
    private String level;//地址类型

    public static class Location {
        private Double lng;//经度
        private Double lat;//纬度

        public Location() {
        }

        public Location(Double lng, Double lat) {
            this.lng = lng;
            this.lat = lat;
        }

        public Location(String lng, String lat) {
            this.lng = Double.parseDouble(lng);
            this.lat = Double.parseDouble(lat);
        }

        public Double getLng() {
            return lng;
        }

        public void setLng(Double lng) {
            this.lng = lng;
        }

        public Double getLat() {
            return lat;
        }

        public void setLat(Double lat) {
            this.lat = lat;
        }

    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Location getLocation() {
        return location;
    }

    public void setLocation(Location location) {
        this.location = location;
    }

    public Integer getPrecise() {
        return precise;
    }

    public void setPrecise(Integer precise) {
        this.precise = precise;
    }

    public Integer getConfidence() {
        return confidence;
    }

    public void setConfidence(Integer confidence) {
        this.confidence = confidence;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

}
